//
//  CollectionHeaderView.swift
//  StudyDY
//
//  Created by yinchangming on 2018/7/4.
//  Copyright © 2018年 yinchangming. All rights reserved.
//

import UIKit

class CollectionHeaderView: UICollectionReusableView {

    @IBOutlet weak var moreBtn: UIButton!
    @IBOutlet weak var groupTitleLabel: UILabel!
    @IBOutlet weak var groupImage: UIImageView!
    var anchor :AnchorCatgary?{
        didSet{
            groupImage.image=UIImage(named: (self.anchor?.local_icon_url)! )
            groupTitleLabel.text=self.anchor?.tag_name
        }
    }
}
extension CollectionHeaderView{
    class func creat() ->CollectionHeaderView{
        return Bundle.main.loadNibNamed("CollectionHeaderView", owner: nil, options: nil)?.first as! CollectionHeaderView
    }
}
